#ifndef OBJECTSYSTEM_H
#define OBJECTSYSTEM_H

#include "object.h"

#ifndef GENESIS_DATATYPES
#define GENESIS_DATATYPES
typedef unsigned char byte;
typedef unsigned short word;
#endif

void ObjPosLoad();

void OPL_Main();
void OPL_Next();

long MakeItem(word* &objPos, byte *stateList, word objNum);
long OPL_MakeItem(word* &objPos, byte objNum);

bool out_of_range(word compareX);
bool out_of_range(object *obj);

void RememberState(object *obj);

object *FindFreeObj();

#endif
